﻿using System.Data;
using Team4Mock.DAO;
namespace Team4Mock.Entity
{
    public class AddressEntity
    {
        public string postcode { get; set; }
        public string county { get; set; }
        public string town { get; set; }
        AddressDAO ae = new AddressDAO();
        public DataTable Getdata()
        {
            return ae.Getdata();
        }
        public DataTable Search(int index,AddressEntity e)
        {
            return ae.Search(index, e.postcode, e.county, e.town);
        }
    }
}